<template>
  <!-- 筹措资金通知查询明细页面弹出框-->
  <el-dialog
    title="筹措资金通知查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="160px" :disabled="true">
      <el-row>
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="报文标识号：" prop="pkgId">
            <el-input v-model="formData.pkgId" placeholder="报文标识号" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="工作日期：" prop="workdate">
            <el-date-picker
              v-model="formData.workdate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择日期"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="借贷标识：" prop="cdFlag">
            <el-select v-model="formData.cdFlag" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.CREDITDEBITCODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="接收直接参与机构号：" prop="directRecverno">
            <el-input v-model="formData.directRecverno" placeholder="接收直接参与机构号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="接收直接参与机构名：" prop="directRecvername">
            <el-input v-model="formData.directRecvername" placeholder="接收直接参与机构名" />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="缺款清算行行号：" prop="wantStBrno">
            <el-input v-model="formData.wantStBrno" placeholder="缺款清算行行号" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="缺款清算行行名：" prop="wantStBrname">
            <el-input v-model="formData.wantStBrname" placeholder="缺款清算行行名" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="货币币种：" prop="curcd">
            <el-input v-model="formData.curcd" placeholder="货币币种" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="应筹金额：" prop="amount">
            <el-input v-model="formData.amount" placeholder="应筹金额" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="账目状态：" prop="entryStatus">
            <el-input v-model="formData.entryStatus" placeholder="账目状态" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="通讯状态：" prop="status">
            <el-select v-model="formData.status" placeholder="请选择" style="width: 100%">
              <el-option
                v-for="dict in dictMap.PKG_STATUS"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="报文接收时间：" prop="rcvTime">
            <el-date-picker
              v-model="formData.rcvTime"
              type="datetime"
              value-format="yyyyMMddHHmmss"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12"></el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>
<script>
export default {
  name: "ManageDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },
  },
};
</script>
